<include file="Public:header"/>
<div class="search">
	<div class="search_detail">
		<p>已免费生成<strong>{:D('Order')->get_free_order_num()}</strong>份合同</p>
		<div class="clearfix box">
			<form action="{:U('search')}" method="get">
				<input type="text" name="keyword" value="{$keyword}" placeholder="请输入合同名称，例如：合伙协议" class="text" />
				<input type="submit" value="智能生成" class="btn" />
			</form>
		</div>
		<div class="hot_words">
			<volist name="hot_keyword" id="kw">
				<a href="{:U('search')}?keyword={$kw}">{$kw}</a>
			</volist>
		</div>
	</div>
</div>
<div class="main">
	<div class="wrap">
		<neq name="is_nav_hide" value="1">
			<div class="locat">
				<php>$nav_count = count($_trail);</php>
				<volist name="_trail" id="nav">
					<if condition="$nav_count eq $i">
						{$nav['title']}
					<else />
						<a href="{$nav['url']}">{$nav['title']}</a>&nbsp;&gt;&nbsp;
					</if>
				</volist>
			</div>
		</neq>
		<neq name="keyword" value="">
			<div class="clearfix search_result">
				<div class="fl"><strong class="cred">"{$keyword}"</strong> 的搜索结果</div>
				<div class="fr">结果数：<strong class="cred">{$count}</strong></div>
			</div>
		</neq>
		<div class="free_list">
			<div class="clearfix title_top">
				<strong class="title1">合同名称</strong>
				<strong class="title2">合同说明</strong>
				<strong class="title3">生成</strong>
			</div>
			<volist name="list" id="rs">
			<div class="block" style="line-height: auto;height: auto;">
				<div class="icon"><img src="{:img($rs['images_url'], 100, 100)}"/></div>
				<h3>{$rs['title']}</h3>
				<div class="writing">
					<p>{$rs['description']}</p>
				</div>
				<div class="operate" style="padding-top: 22px;">
					<a href="{:URL('detail', array('agreement_id' => $rs['agreement_id']), 'free_agreement/detail_' . $rs['agreement_id'])}" target="_blank" style="color: #FFF;">
						智能生成
					</a>
				</div>
			</div>
			</volist>
			<empty name="list">
				<div class="no-data">抱歉，没有找到对应的数据。</div>
			</empty>

			<notempty name="page"><div class="page">{$page}</div></notempty>
		</div>
	</div>
</div>
<include file="Public:footer"/>